Specifying Type Systems with Multi-Level Order-Sorted Algebra
نویسنده
چکیده
We propose to use order-sorted algebras (OSA) on multiple levels to describe languages together with their type systems. It is demonstrated that even advanced aspects can be modeled, including, parametric polymorphism, complex relationships between diierent sorts of an operation's rank, the speciication of a variable number of parameters for operations, and type constructors using values (and not only types) as arguments. The basic idea is to use a signature to describe a type system where sorts denote sets of type names and operations denote type constructors. The values of an algebra for such a signature are then used as sorts of another signature now describing a language having the previously deened type system. This way of modeling is not restricted to two levels, and we will show useful applications of three-level algebras.
منابع مشابه
Mathematical Synthesis of Equational Deduction Systems
Our view of computation is still evolving. The concrete theories for specific computational phenomena that are emerging encompass three aspects: specification and programming languages for describing computations, mathematical structures for modelling computations, and logics for reasoning about properties of computations. To make sense of this complexity, and also to compare and/or relate diff...
متن کاملExplicit Graphs in a Functional Model for Spatial Databases
Observing that networks are ubiquitous in applications for spatial databases, we define a new data model and query language that especially supports graph structures. This model integrates concepts of functional data modeling with order-sorted algebra. Besides object and data type hierarchies graphs are available as an explicit modeling tool, and graph operations are part of the query language....
متن کاملOrder-Sorted Polymorphism in Isabelle
ML-style polymorphism can be generalized from a single-sorted algebra of types to an order-sorted one by adding a partially ordered layer of “sorts” on top of the types. Type inference proceeds as in the Hindley/Milner system, except that order-sorted unification of types is used. The resulting system has been implemented in Isabelle to permit type variables to range over user-definable subsets...
متن کاملSubalgebras of an Order Sorted Algebra. Lattice of Subalgebras1
Let S be an order sorted signature and let U0 be an order sorted algebra of S. A many sorted subset indexed by the sorts of U0 is said to be an OSSubset of U0 if: (Def. 2) It is an order sorted set of S. Let S be an order sorted signature. One can verify that there exists an order sorted algebra of S which is monotone, strict, and non-empty. Let S be an order sorted signature and let U0 be a no...
متن کاملPresenting functors on many-sorted varieties and applications
This paper studies several applications of the notion of a presentation of a functor by operations and equations. We show that the technically straightforward generalisation of this notion from the one-sorted to the many-sorted case has several interesting consequences. First, it can be applied to give equational logic for the binding algebras modelling abstract syntax. Second, it provides a ca...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1993